import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:"/",
      name:'vueDemo',

      children:[
        {
          path: '/',
          name: 'login',
            component: () => import('../imitateWechat/views/Login.vue'),
        },
        {
          path:"/chatMain",
          name:'vueDemo',
          meta:{title:'主界面',requireAuth:true},
          component: () => import('../imitateWechat/views/iChatMain.vue'),
        }

      ]
    },

  ]
})

export default router
